--This is a lua script includes the virtual key map
--Edited By CodeSoul
vk = {}
vk[0x01] = "VK_LBUTTON"
vk[0x02] = "VK_RBUTTON"
vk[0x03] = "VK_CANCEL"
vk[0x04] = "VK_MBUTTON"
vk[0x05] = "VK_XBUTTON1"
vk[0x06] = "VK_XBUTTON2"
vk[0x08] = "VK_BACK"
vk[0x09] = "VK_TAB"
vk[0x0C] = "VK_CLEAR"
vk[0x0D] = "VK_RETURN"          --Enter
vk[0x10] = "VK_SHIFT"
vk[0x11] = "VK_CONTROL"
vk[0x12] = "VK_MENU"            --Alt
vk[0x13] = "VK_PAUSE"
vk[0x14] = "VK_CAPITAL"
vk[0x15] = "VK_KANA"
vk[0x15] = "VK_HANGUEL"
vk[0x15] = "VK_HANGUL"
vk[0x17] = "VK_JUNJA"
vk[0x18] = "VK_FINAL"
vk[0x19] = "VK_HANJA"
vk[0x19] = "VK_KANJI"
vk[0x1B] = "VK_ESCAPE"
vk[0x1C] = "VK_CONVERT"
vk[0x1D] = "VK_NONCONVERT"
vk[0x1E] = "VK_ACCEPT"
vk[0x1F] = "VK_MODECHANGE"
vk[0x20] = "VK_SPACE"
vk[0x21] = "VK_PRIOR"
vk[0x22] = "VK_NEXT"
vk[0x23] = "VK_END"
vk[0x24] = "VK_HOME"
vk[0x25] = "VK_LEFT"
vk[0x26] = "VK_UP"
vk[0x27] = "VK_RIGHT"
vk[0x28] = "VK_DOWN"
vk[0x29] = "VK_SELECT"
vk[0x2A] = "VK_PRINT"
vk[0x2B] = "VK_EXECUTE"
vk[0x2C] = "VK_SNAPSHOT"
vk[0x2D] = "VK_INSERT"
vk[0x2E] = "VK_DELETE"
vk[0x2F] = "VK_HELP"
vk[0x5B] = "VK_LWIN"
vk[0x5C] = "VK_RWIN"
vk[0x5D] = "VK_APPS"
vk[0x5F] = "VK_SLEEP"
vk[0x60] = "VK_NUMPAD0"
vk[0x61] = "VK_NUMPAD1"
vk[0x62] = "VK_NUMPAD2"
vk[0x63] = "VK_NUMPAD3"
vk[0x64] = "VK_NUMPAD4"
vk[0x65] = "VK_NUMPAD5"
vk[0x66] = "VK_NUMPAD6"
vk[0x67] = "VK_NUMPAD7"
vk[0x68] = "VK_NUMPAD8"
vk[0x69] = "VK_NUMPAD9"
vk[0x6A] = "VK_MULTIPLY"
vk[0x6B] = "VK_ADD"
vk[0x6C] = "VK_SEPARATOR"
vk[0x6D] = "VK_SUBTRACT"
vk[0x6E] = "VK_DECIMAL"
vk[0x6F] = "VK_DIVIDE"
vk[0x70] = "VK_F1"
vk[0x71] = "VK_F2"
vk[0x72] = "VK_F3"
vk[0x73] = "VK_F4"
vk[0x74] = "VK_F5"
vk[0x75] = "VK_F6"
vk[0x76] = "VK_F7"
vk[0x77] = "VK_F8"
vk[0x78] = "VK_F9"
vk[0x79] = "VK_F10"
vk[0x7A] = "VK_F11"
vk[0x7B] = "VK_F12"
vk[0x7C] = "VK_F13"
vk[0x7D] = "VK_F14"
vk[0x7E] = "VK_F15"
vk[0x7F] = "VK_F16"
vk[0x80] = "VK_F17"
vk[0x81] = "VK_F18"
vk[0x82] = "VK_F19"
vk[0x83] = "VK_F20"
vk[0x84] = "VK_F21"
vk[0x85] = "VK_F22"
vk[0x86] = "VK_F23"
vk[0x87] = "VK_F24"
vk[0x90] = "VK_NUMLOCK"
vk[0x91] = "VK_SCROLL"
vk[0xA0] = "VK_LSHIFT"
vk[0xA1] = "VK_RSHIFT"
vk[0xA2] = "VK_LCONTROL"
vk[0xA3] = "VK_RCONTROL"
vk[0xA4] = "VK_LMENU"
vk[0xA5] = "VK_RMENU"
vk[0xA6] = "VK_BROWSER_BACK"
vk[0xA7] = "VK_BROWSER_FORWARD"
vk[0xA8] = "VK_BROWSER_REFRESH"
vk[0xA9] = "VK_BROWSER_STOP"
vk[0xAA] = "VK_BROWSER_SEARCH"
vk[0xAB] = "VK_BROWSER_FAVORITES"
vk[0xAC] = "VK_BROWSER_HOME"
vk[0xAD] = "VK_VOLUME_MUTE"
vk[0xAE] = "VK_VOLUME_DOWN"
vk[0xAF] = "VK_VOLUME_UP"
vk[0xB0] = "VK_MEDIA_NEXT_TRACK"
vk[0xB1] = "VK_MEDIA_PREV_TRACK"
vk[0xB2] = "VK_MEDIA_STOP"
vk[0xB3] = "VK_MEDIA_PLAY_PAUSE"
vk[0xB4] = "VK_LAUNCH_MAIL"
vk[0xB5] = "VK_LAUNCH_MEDIA_SELECT"
vk[0xB6] = "VK_LAUNCH_APP1"
vk[0xB7] = "VK_LAUNCH_APP2"
vk[0xBA] = "VK_OEM_1"
vk[0xBB] = "VK_OEM_PLUS"
vk[0xBC] = "VK_OEM_COMMA"
vk[0xBD] = "VK_OEM_MINUS"
vk[0xBE] = "VK_OEM_PERIOD"
vk[0xBF] = "VK_OEM_2"
vk[0xC0] = "VK_OEM_3"
vk[0xDB] = "VK_OEM_4"
vk[0xDC] = "VK_OEM_5"
vk[0xDD] = "VK_OEM_6"
vk[0xDE] = "VK_OEM_7"
vk[0xDF] = "VK_OEM_8"
vk[0xE2] = "VK_OEM_102"
vk[0xE5] = "VK_PROCESSKEY"
vk[0xE7] = "VK_PACKET"
vk[0xF6] = "VK_ATTN"
vk[0xF7] = "VK_CRSEL"
vk[0xF8] = "VK_EXSEL"
vk[0xF9] = "VK_EREOF"
vk[0xFA] = "VK_PLAY"
vk[0xFB] = "VK_ZOOM"
vk[0xFC] = "VK_NONAME"
vk[0xFD] = "VK_PA1"
vk[0xFE] = "VK_OEM_CLEAR"

for i=0x30,0x39 do vk[i] = "VK_"..string.char(i) end
for i=0x41,0x5a do vk[i] = "VK_"..string.char(i) end

for k,v in pairs(vk) do vk[v] = k end
